package regexExercise;

public class replaceAll {
    public static void main(String[] args) {
        String str = "BILIBILI";
        str = str.replaceAll("B","P");
        System.out.println(str);

        String str1 = "d4a1ds32a1f2as1fa54r5a";
        str1 = str1.replaceAll("[0-9]","*");
        System.out.println(str1);
    }
}
